<?php include($this->view_path('common/header'));?>
 <script type="text/javascript" src="<?php echo __JS__;?>/ueditor/third-party/SyntaxHighlighter/shCore.js"></script>
 <script type="text/javascript" src="<?php echo __JS__;?>/audiojs/audio.min.js"></script>
       <link rel="stylesheet"  href="<?php echo __JS__;?>/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css" />
 <script language="javascript">
 SyntaxHighlighter.all();
  audiojs.events.ready(function() {
    var as = audiojs.createAll();
  });
 </script>
 <?php
 $filesinfo=get_headers(__UPLOAD__.'/'.$datas['files']);
 ?>
<div class="g-bd f-cb">
    <div class="g-mn">
        <p><h2 class="u-tt u-tt-xl"><?php echo $datas['title'];?></h2></p>
        <br>
        <div class="ipt">
                    <p>&nbsp;&nbsp;<b>发布时间:&nbsp;</b><?php echo $datas['ptime'];?>&nbsp;&nbsp;&nbsp;&nbsp;<b>内容地址:&nbsp;</b>&nbsp;</b><?php echo __INDEX__.'/f/'.$datas['id'];?>&nbsp;&nbsp;&nbsp;&nbsp;</p>
                </div>
        <br>
        <hr>
        <br>
        <div >
        <div style=" background-color:#CCC; padding:10px;">
        <b>文件外链地址:</b>&nbsp;<a href="<?php echo __UPLOAD__.'/'.$datas['files'];?>"><?php echo __UPLOAD__.'/'.$datas['files'];?></a><br><br>
        <b>文件 信息:</b>&nbsp;<?php echo $filesinfo[8];?>
      <br><br>
        <b>文件 大小:</b>&nbsp;<?php echo (int)(substr($filesinfo[4],16)/1024);?>KB
      <br><br>
        <b>文件 类型:</b>&nbsp;<?php echo substr($filesinfo[3],14);?>
      <br><br>
        <b>文件响应状态:</b>&nbsp;<?php echo $filesinfo[0];?>
      <br><br>
        <b>服务器 信息:</b>&nbsp;<?php echo $filesinfo[2];?>
        <br>
        <?php if(substr($filesinfo[3],14,10)=='audio/mpeg'){
		?>
        <br><b>检测到MP3音频文件,正在为您播放:</b><br><br>
        <audio src="<?php echo __UPLOAD__.'/'.$datas['files'];?>" autoplay="true" />
        <?php } else if(substr($filesinfo[3],14,14)=='audio/x-ms-wma') {?>
                <br><b>检测到WMA音频文件,正在为您播放:</b><br><br>

           <embed src="<?php echo __UPLOAD__.'/'.$datas['files'];?>" width="240" 
　　 height="45" autostart="true" ></embed> 
        <?php }?>
        </div>
        	<br><br><?php echo $datas['contents'];?>
        </div>
    </div>
</div>
<?php include($this->view_path('common/footer'));?>